package com.hospital.schedule.module;

import com.hospital.common.config.GlobalHandlerConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@MapperScan("com.hospital.schedule.module.mapper")
//这个是配合feign等服务间调用的接口
@EnableDiscoveryClient
//@Import({GlobalHandlerConfig.class, WebConfig.class})
@Import({GlobalHandlerConfig.class})
public class ScheduleModuleApplication {
    public static void main(String[] args) {
        SpringApplication.run(ScheduleModuleApplication.class, args);
    }
}
